package com.milk.system.model.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单信息表 DTO
 *
 * @author milk
 * @since 2024-05-04
 */
@Getter
@Setter
@Schema(description = "订单信息表传输层对象")
public class OrdersDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单唯一标识")

    private Long id;

    @Schema(description = "订单日期")

    private LocalDateTime orderDate;

    @Schema(description = "客户姓名")

    private String customerName;

    @Schema(description = "客户邮箱")

    private String customerEmail;

    @Schema(description = "商家id")

    private Long merchantId;

    @Schema(description = "订单状态")

    private Byte orderStatus;

    @Schema(description = "订单总金额")

    private BigDecimal totalAmount;

    @Schema(description = "创建时间")

    private LocalDateTime createdTime;

    @Schema(description = "修改时间")

    private LocalDateTime updatedTime;

    @Schema(description = "逻辑删除标识（0：未删除，1：已删除）")

    private Boolean deleted;
}
